package com.czwx.bee.business.manager.modular.statistics.model.query;

import com.czwx.bee.base.web.common.CommonPageQuery;
import com.czwx.bee.base.web.validator.DateCompare;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.Past;
import java.util.Date;
import java.util.Map;

/**
 * @Author:wiki
 * @Date:Create in 2018/7/5 0005 上午 11:29
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BizDataQuery extends CommonPageQuery {

    @ApiModelProperty(value="开始时间")
    @JsonFormat(pattern="yyyy-MM-dd")
    @DateCompare(Date = "2018-04-30",type = "min",message = "日期必须>=2018-04-30")
    private Date startTime;

    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern="yyyy-MM-dd")
    @Past(message = "结束时间必须<=今天日期")
    private Date endTime;
}
